/**
 * Created by Administrator on 2017/6/2.
 */
function browserSize() {
    if(window.innerHeight){
        return{
            width:window.innerWidth,
            height:window.innerHeight
        }
    }else if (document.compatMode == "CSS1Compat"){
        console.log(document.compatMode);
        return{
            width:document.documentElement.clientWidth,
            height:document.documentElement.clientHeight
        }
    }

    return {
        width:document.body.clientWidth,
        height:document.body.clientHeight
    }
}